<?php
namespace app\api\controller;

use think\facade\Db;

class User extends Common
{
    /**
     * @OA\Post(
     *     path="/api/user/index",
     *     tags={"学员信息接口"},
     *     summary="学员列表",
     *     operationId="UserList",
     *     @OA\Parameter(
     *         name="page",
     *         in="query",
     *         description="当前页码",
     *         required=false,
     *         @OA\Schema(
     *             type="int"
     *         )
     *     ),
     *     @OA\Parameter(
     *         name="username",
     *         in="query",
     *         description="学员姓名",
     *         required=false,
     *         @OA\Schema(
     *             type="string"
     *         )
     *     ),
     *     @OA\Parameter(
     *         name="mobile",
     *         in="query",
     *         description="学员手机号",
     *         required=false,
     *         @OA\Schema(
     *             type="false"
     *         )
     *     ),
     *     security={
     *         {"petstore_auth": {"write:pets", "read:pets"}}
     *     },
     *     @OA\Response(
     *         response=200,
     *         description="查询成功"
     *     )
     * )
     */

    public function index(){

    }

    /**
     * @OA\Post(
     *     path="/api/user/addUser",
     *     tags={"学员信息接口"},
     *     summary="新增|修改学员",
     *     operationId="AddUser",
     *     @OA\Parameter(
     *         name="username",
     *         in="query",
     *         description="学员姓名",
     *         required=true,
     *         @OA\Schema(
     *             type="string"
     *         )
     *     ),
     *     @OA\Parameter(
     *         name="mobile",
     *         in="query",
     *         description="学员手机号",
     *         required=true,
     *         @OA\Schema(
     *             type="false"
     *         )
     *     ),
     *     @OA\Parameter(
     *         name="cid",
     *         in="query",
     *         description="学员当前所属教室",
     *         required=false,
     *         @OA\Schema(
     *             type="int"
     *         )
     *     ),
     *     security={
     *         {"petstore_auth": {"write:pets", "read:pets"}}
     *     },
     *     @OA\Response(
     *         response=200,
     *         description="新增成功"
     *     )
     * )
     */
    public function addUser(){

    }

    /**
     * @OA\Post(
     *     path="/api/user/delUser",
     *     tags={"学员信息接口"},
     *     summary="删除学员",
     *     operationId="DelUser",
     *     @OA\Parameter(
     *         name="id",
     *         in="query",
     *         description="学员ID",
     *         required=true,
     *         @OA\Schema(
     *             type="int"
     *         )
     *     ),
     *     security={
     *         {"petstore_auth": {"write:pets", "read:pets"}}
     *     },
     *     @OA\Response(
     *         response=200,
     *         description="删除成功"
     *     )
     * )
     */
    public function delUser(){

    }
}
